package com.softoa.contorller;

import com.softoa.pojo.News;
import com.softoa.service.INewsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("news")
public class NewsController {
    @Autowired
    INewsService iNewsService;
    /**
     * 还没写
     */
    @RequestMapping("savenews")
    public int newsSave(News news) {


        return iNewsService.newsSave(news);
    }
}
